/**
 * @Date: Mar 4, 2010 7:00:40 PM
 */
package com.philip.journal.core.dao;

import com.philip.journal.home.dao.BranchDAO;
import com.philip.journal.home.dao.ConfigItemDAO;
import com.philip.journal.home.dao.EntryDAO;

/**
 * @author cry30
 */
public class DAOFacade {

    /** For branch related DAO access. */
    private BranchDAO branchDAO;

    /** For User/Login related DAO access. */
    private UserDAO userDAO;

    /** For Entry related DAO access. */
    private EntryDAO entryDAO;

    /** For Config item related DAO access. */
    private ConfigItemDAO configItemDAO;

    /**
     * Accessor method for {@link #configItemDAO}.
     *
     * @return {@link #configItemDAO}.
     */
    public ConfigItemDAO getConfigItemDAO() {
        return configItemDAO;
    }

    /**
     * @param pConfigItemDAO
     *            new {@link #configItemDAO} to set.
     */
    public void setConfigItemDAO(final ConfigItemDAO pConfigItemDAO) {
        this.configItemDAO = pConfigItemDAO;
    }

    /**
     * @param pBranchDAO
     *            new {@link #branchDAO} to set.
     */
    public void setBranchDAO(final BranchDAO pBranchDAO) {
        this.branchDAO = pBranchDAO;
    }

    /**
     * @param pUserDAO
     *            new {@link #userDAO} to set.
     */
    public void setUserDAO(final UserDAO pUserDAO) {
        this.userDAO = pUserDAO;
    }

    /**
     * Accessor method for {@link #branchDAO}.
     *
     * @return {@link #branchDAO}.
     */
    public BranchDAO getBranchDAO() {
        return branchDAO;
    }

    /**
     * Accessor method for {@link #userDAO}.
     *
     * @return {@link #userDAO}.
     */
    public UserDAO getUserDAO() {
        return userDAO;
    }

    /**
     * @param pEntryDAO
     *            new {@link #entryDAO} to set.
     */
    public void setEntryDAO(final EntryDAO pEntryDAO) {
        this.entryDAO = pEntryDAO;
    }

    /**
     * Accessor method for {@link #entryDAO}.
     *
     * @return {@link #entryDAO}.
     */

    public EntryDAO getEntryDAO() {
        return entryDAO;
    }
}
